//
//  LCFeedBackVC.m
//  LongChain
//
//  Created by FengZi on 2018/4/11.
//  Copyright © 2018年 FengZi. All rights reserved.
//

#import "LCFeedBackVC.h"

@interface LCFeedBackVC ()<UITextViewDelegate>
@property (weak, nonatomic) IBOutlet UITextView *bottomTextView;

@property (weak, nonatomic) IBOutlet UITextView *frontTextView;

@end

@implementation LCFeedBackVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(FeedBackTextViewChange) name:UITextViewTextDidChangeNotification object:nil];
    
}

- (void)FeedBackTextViewChange {
    
    
    if (self.frontTextView.text.length > 0) {
        self.bottomTextView.text = @"";
    }else{
        self.bottomTextView.text = @"请描述您的问题和意见,帮助我们改善产品";
    }
}
- (IBAction)submitFeedBack:(id)sender {
    
    [self showHint:@"反馈成功"];
    [self.navigationController popViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
